Correct mismatched ctor/xfree in tpo.
authorrobertlipe@gmail.com <robertlipe@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 10 Feb 2013 03:03:54 +0000 (03:03 +0000)
committerrobertlipe@gmail.com <robertlipe@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 10 Feb 2013 03:03:54 +0000 (03:03 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4299 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/tpo.cc

index adb30e5462742d3b17441bba3247af11fddc1fcc..36e87d8dde7c8cb5463a840c28ac0d326cfe906f 100644 (file)
@@ -640,7 +640,6 @@ void tpo_process_tracks(void)
   for (ii = 0; ii < track_count; ii++) {
     unsigned int line_type;
     unsigned int track_style;
-    unsigned int track_length;
     unsigned int name_length;
     char* track_name = NULL;
     unsigned int track_byte_count;
@@ -1361,7 +1360,7 @@ void tpo_process_routes(void)
     if (tpo_wp_index[ii]->description) {
       xfree(tpo_wp_index[ii]->description);
     }
-    xfree(tpo_wp_index[ii]);
+    waypt_free(tpo_wp_index[ii]);
   }
 
   // Free the index array itself